<?php



namespace api\common\model;


use think\Model;

class RlEtAzdModel extends Model
{

    protected $pk = 'et_azd_id';
    protected $autoWriteTimestamp = true;
    protected $createTime = 'create_time';
    protected $updateTime = 'update_time';
    //公共条件
    protected static $commonWhere=[
        'active_flag'=>1
    ];
    //传值条件
    protected  static $where =false;
    //执行条件
    private  static $queryWhere;
    //model 对象
    protected  $Instance;
    //初始化对象 加载条件
 /*   public function __construct(){
        //加载条件
        self::$queryWhere=array_merge(self::$where,self::$commonWhere);
        if(!self::$Instance){
            self::$Instance = new self();
        }
    }*/
    /*remark  获取单个结果集
     * return 结果集（单个）
     * */
    public static function installFind(){
        $res=self::$Instance->where(self::$queryWhere)->find();
        return $res;
    }
}